module com.kds.fxtool {
    requires javafx.controls;
    requires javafx.fxml;
    requires com.google.gson;
    requires feign.core;
    requires feign.gson;
    requires feign.okhttp;
    requires feign.slf4j;
    requires spring.context;
    requires org.slf4j;
    requires easy.captcha;

    // 导出必要的包
    exports com.kds.fxtool;
    exports com.kds.fxtool.controller;

    // 打开包以便 FXML 加载器可以反射访问
    opens com.kds.fxtool to javafx.fxml;
    opens com.kds.fxtool.controller to javafx.fxml;
    opens fxml to javafx.fxml;
    // 开放配置包给 Spring
    opens com.kds.fxtool.config to spring.core, spring.context;
    opens com.kds.fxtool.service to spring.core, spring.context;

    // 设置 FXML 加载器的主类
    uses javafx.util.BuilderFactory;
    uses javafx.fxml.FXMLLoader;
}